﻿namespace Mangosoft.DiceCopy.Domain.MainBoundedContext.Aggregates.NewsAgg {
    using Mangosoft.DiceCopy.Domain.Seedwork.Specification;

    public static class NewsSpecifications {
        public static Specification<News> NewsByChannel(int channel) {
            return new DirectSpecification<News>(n => n.Channel == channel);
        }

        public static Specification<News> EnabledNews() {
            return new DirectSpecification<News>(n => n.Published);
        }
    }
}
